package cn.sample;

import com.github.yitter.contract.IdGeneratorOptions;
import com.github.yitter.idgen.YitIdHelper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * <h2></h2>
 *
 * <p>Security 简单前后端分离开源示例项目</p>
 *
 * @author HKD
 */
@SpringBootApplication
public class SecuritySampleApplication {

    public static void main(String[] args) {
        SpringApplication.run(SecuritySampleApplication.class,args);

        // 初始化id生成器
        IdGeneratorOptions options = new IdGeneratorOptions();
        YitIdHelper.setIdGenerator(options);
    }
}
